package database;

/**
 * class User - symbolize a record of a user in DB
 */
public class User {
	private String userID;
	private String password;
	private Integer folderID;
	
	/***
	 * default constructor
	 */
	public User() {}
	
	/**
	 * constructor - update userID,password,folderID
	 * @param userID - user id
	 * @param password - password
	 * @param folderID  - folder id of it's root dropbox folder
	 */
	public User(String userID, String password, Integer folderID)
	{
		this.userID = userID;
		this.password = password;
		this.folderID = folderID;
	}
	
	/**
	 * @return the user id
	 */
	public String getUserID() {
		return userID;
	}
	
	/**
	 * update userID field
	 * @param userID - user id
	 */
	public void setUserID(String userID) {
		this.userID = userID;
	}
	
	/**
	 * @return the user password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * update password field
	 * @param password - user password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the folder id of the root folder of the dropbox
	 */
	public Integer getFolderID() {
		return folderID;
	}

	/**
	 * update folderID field
	 * @param folderID - the folder id of the root folder of the dropbox
	 */
	public void setFolderID(Integer folderID) {
		this.folderID = folderID;
	}
	

}
